import {createApp, reactive, ref,} from 'vue'
import App from './App.vue'
import axios from 'axios'
import 'element-plus/dist/index.css'
import ElementPlus from 'element-plus'
import * as icons from '@element-plus/icons-vue'
import router from "@/components/router";
let app = createApp(App)
app.config.globalProperties.$axios = axios
app.config.globalProperties.$currentUser = reactive({name:"谭玉财",id:1})
app.config.globalProperties.$path =reactive({path:null})
app.config.globalProperties.$isLogin=ref(false)
app.config.globalProperties.serCtx="http://192.168.117.17:9090/shibida"

// login main showUserInfo
app.config.globalProperties.$cutPage = ref('login')
app.config.globalProperties.$cutCookerId = ref(-1);
app.use(ElementPlus)
app.use(router)

for( let key in icons){
    app.component(key, icons[key])
}
app.mount('#app')